Comment out window var and add new func
authorjustbur <justin@burkett.cc>
Wed, 3 Feb 2016 13:22:53 +0000 (08:22 -0500)
committerjustbur <justin@burkett.cc>
Wed, 3 Feb 2016 13:22:53 +0000 (08:22 -0500)
The window var is not being used.

which-key.el

index 738275dc421582ff97c8cbd87902f73a6d086ffd..ab564626140763c6152018eea12dd0e7f7b1762e 100644 (file)
@@ -422,8 +422,8 @@ to a non-nil value for the execution of a command. Like this
 ;; Internal Vars
 (defvar which-key--buffer nil
   "Internal: Holds reference to which-key buffer.")
-(defvar which-key--window nil
-  "Internal: Holds reference to which-key window.")
+;; (defvar which-key--window nil
+;;   "Internal: Holds reference to which-key window.")
 (defvar which-key--timer nil
   "Internal: Holds reference to open window timer.")
 (defvar which-key--paging-timer nil
@@ -875,6 +875,9 @@ total height."
   (when (frame-live-p which-key--frame)
     (delete-frame which-key--frame)))
 
+(defun which-key--popup-showing-p ()
+  (window-live-p (get-buffer-window which-key--buffer)))
+
 (defun which-key--show-popup (act-popup-dim)
   "Show the which-key buffer.
 ACT-POPUP-DIM includes the dimensions, (height . width) of the